home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3312 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: lyra.csx.cam.ac.uk!mgb
  2. From: mgb@mail.ast.cam.ac.uk (Martin Beckett)
  3. Newsgroups: comp.lang.c
  4. Subject: Yet another Arrays of Arrays question
  5. Date: 27 Jan 1996 19:15:07 GMT
  6. Organization: Institute of Astronomy, Cambridge
  7. Message-ID: <4edtjr$im9@lyra.csx.cam.ac.uk>
  8. References: <4e4b6n$mph@news.texas.net> <4edt35$c3v@castle.nando.net>
  9. NNTP-Posting-Host: cass02.ast.cam.ac.uk
  10.  
  11. Hi, I have a problem with creating an array of arrays of strings.
  12.  
  13. The error reporting routine in my program is given two number which specify
  14. the module reporting the error and the error number.
  15.  
  16. Each module defines a list of error message strings in an array
  17.     char *module1_error[] = { "error 1","error 2" .. etc }
  18.  
  19. These must be put into a global array of arrays so that eg. global_error[1][3];
  20. Finds the string for error message3 in module1.
  21.  
  22. I can't seem to get the defination for the global array correct.
  23.  
  24.         Any Ideas ?
  25.  
  26.             Martin Beckett
  27.  
  28.  
  29. ----------------------------------------------------------------------------
  30. Martin Beckett,         Institute of Astronomy, University of Cambridge
  31. Tel: 01223 337453       Fax: 01223 337523       Email: mgb@ast.cam.ac.uk
  32.